package com.example.mapper;

import com.example.entity.Params;
import com.example.entity.Type;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


public interface TypeMapper {
    List<Type> findBySearch(@Param("params") Params params);

    int deleteById(Integer id);

    int add(Type type);

    int update(Type type);

    List<Type> selectA();
}
